package com.heima.admin.test;

import com.heima.admin.mapper.SensitiveMapper;
import com.heima.feigns.AdminFeign;
import com.heima.model.common.dtos.ResponseResult;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class test0101 {
    @Autowired
    SensitiveMapper sensitiveMapper;

    @Autowired
    AdminFeign adminFeign;
    @Test
    public void test01(){
        List<String> allSensitives = sensitiveMapper.findAllSensitives();
        System.out.println(allSensitives);
    }

    @Test
    public void test02(){
        ResponseResult sensitives = adminFeign.sensitives();
        System.out.println(sensitives.getData());
    }

}
